package com.my.core.base.response;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

public class ServiceResponse {
	
	private Boolean success;
	
	private Object data;
	
	public ServiceResponse(Boolean success) {
		this(success, null);
	}

	public ServiceResponse(Boolean success, Object data) {
		super();
		this.success = success;
		this.data = data;
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
	@Override
	public String toString() {
		return JSON.toJSONString(this, SerializerFeature.UseISO8601DateFormat);
	}

}
